package com.cristina.attention.config;

import com.cristina.attention.event.SyncChatListener;
import lombok.AllArgsConstructor;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author by superman
 */
@Configuration(proxyBeanMethods = false)
@AllArgsConstructor
@ConditionalOnWebApplication
public class SyncChatAutoConfiguration {

    @Bean
    public SyncChatListener syncChatListener() {
        return new SyncChatListener();
    }
}
